<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>resolve</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
    </style>
</head>
<body>
	<div class="container">
		<h1>resolve</h1>
	</div>
	<script src="atguigu-promise.js"></script>
	<script type="text/javascript">
		var ok1 = new Promise( (resolve, reject) => {
			resolve('ok1 成功')
		})

		var failed1 = new Promise( (resolve, reject) => {
			reject('failed1 失败')
		})

		var p1 = new Promise( (resolve, reject) => {
			resolve( ok1 )
		})

		var p2 = new Promise( (resolve, reject) => {
			resolve( failed1 )
		})

		var p3 = new Promise( (resolve, reject) => {
			resolve( p2 )
		})

		console.log(p1)
		console.log(p3)
		


	</script>
</body>
</html>